﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright company="Microsoft Corp." file="ListHostedServicesCommand.cs">
//   All rights reserved. See License.txt in the project root for license information.
// </copyright>
// 
// --------------------------------------------------------------------------------------------------------------------
namespace AzureManagement.AzureCommands
{
    using RestClient;

    public class ListHostedServicesCommand : AzureManagementCommand
    {
        public ListHostedServicesCommand(IAzureServiceContext serviceContext)
            : base(serviceContext)
        {
        }

        protected override RequestContext GetRequestContext()
        {
            return this.CreateGetOperationRequestContext();
        }

        protected override string FormatPath(IAzureServiceContext azureServiceContext)
        {
            return string.Format("{0}/services/hostedservices", azureServiceContext.SubscriptionId);
        }
    }
}